home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
print
/
890ps.arc
/
NETWARE.H
< prev
next >
Wrap
Text File
|
1990-01-08
|
3KB
|
76 lines
/*
Constants, typedefs, and prototypes for some of the Novell NetWare 2.1x
system calls. This library is multi-threaded - all functions prevent
re-entrancy into NetWare when used in TopSpeed C multi-threaded programs.
*/
#define OBJNAMEMAXLEN 47 /* NetWare object max name length */
#define OBJPASSMAXLEN 127 /* NetWare object max password length */
typedef unsigned char byte;
typedef unsigned int word;
typedef unsigned long dword;
typedef struct {
byte _ClientStation;
byte _ClientTask;
dword _ClientID;
dword _TargetID;
byte _TargetTime[6];
byte _EntryTime[6];
word _JobNumber;
word _JobType;
byte _JobPos;
byte _JobFlags;
char _JobFile[14];
byte _JobHandle[6];
byte _ServerStation;
byte _ServerTask;
dword _ServerID;
} QueueJobInfoStruct;
typedef struct {
byte _Version;
byte _TabSize;
word _Copies;
word _Flags;
word _Lines;
word _Chars;
char _Form[16];
byte _reserved[6];
char _BannerName[13];
char _BannerFile[13];
char _HeaderFile[14];
char _Path[80];
} PrintJobClientStruct;
byte NetWare(word func, void *req, void *rep);
byte ChangeBinderyObjectPassword(const char *name, word type,
const char *oldpass, const char *newpass);
byte DeleteBinderyObject(const char *name, word type);
byte CreateBinderyObject(const char *name, word type, const char *password,
byte security, byte flags);
byte GetBinderyObjectID(const char *name, word type, dword *id);
byte LoginToFileServer(const char *name, word type, const char *password);
byte EnterLoginArea(byte locals, const char *path);
byte Logout(void);
byte AllocPermanentDirectoryHandle(char drive, byte dir, const char *path,
byte *handle, byte *rights);
byte CreateQueue(const char *name, word type, byte dir, const char *path,
dword *id);
byte AttachQueueServerToQueue(dword id);
byte DetachQueueServerFromQueue(dword id);
byte ServiceQueueJobAndOpenFile(dword id, word type,
QueueJobInfoStruct *info);
byte FinishServicingQueueJobAndFile(dword id, word job, dword charge);
byte ReadQueueCurrentStatus(dword id, byte *status, byte *jobs, byte *servers,
dword sid[], byte stations[], byte *mserver);
byte AbortServicingQueueJobAndFile(dword id, word job);
byte ReadQueueJobEntry(dword id, word job, QueueJobInfoStruct *info,
char jdesc[], byte client[]);
byte ReadPrintJobInfo(dword id, word job, PrintJobClientStruct *client);
byte GetQueueJobList(dword id, word *count, word jobs[], word *max);
byte GetQueueJobsFileSize(dword id, word job, dword *size);